<template>
  <div id='tmpl'>
     <div class="content"  v-for="item in list">
        <h4 v-text="item.title"></h4>
        <hr>
        <p v-html="item.content"></p>
     </div>
  </div>
</template>
<script>
import common from '../kits/common.js';
import {Toast} from 'mint-ui';
export default {
  name: "component_name",
  data () {
    return {
        id:0,
        list:[]
    };
  },
  created(){
      this.id = this.$route.params.id;
      this.getdesc()
  },
  methods:{
      getdesc(){
          var url = common.apidomain +'/api/goods/getdesc/'+this.id;
          this.$http.get(url).then(function(res){
               if(res.body.status != 0){
                Toast('res.body.message');
                  return;
            }
             this.list =  res.body.message
          })
      }
  }
}
</script>
<style lang="css" scoped>
.content h4{
    padding: 10px;
    color:#0094ff;
}
</style>